package org.huntaway.kindergarten.service.pub;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.huntaway.kindergarten.manager.FinanceTypeMng;
import org.huntaway.kindergarten.po.FinanceType;
import org.huntaway.kindergarten.service.KindProcessor;
import org.huntaway.kindergarten.util.GlobalCon;

public class FinanceTypeService extends KindProcessor<FinanceType> {
	public FinanceTypeService() {
		super();
		baseMng = (FinanceTypeMng) sm.getMng(GlobalCon.FINANCETYPE);
	}
	@Override
	public FinanceType getObj() {
		return new FinanceType();
	}
	public ActionForward addProcess(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		ActionForward serBean = super
				.addProcess(mapping, form, request, response);
		dateManage.save(item);
		return serBean;
	}
}
